/* 整体容器 */
.rack-elevation-wrapper {
    margin: 20px;
    padding: 20px;
    background: #1a1a1a;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* 机柜头部信息 */
.rack-header {
    color: #fff;
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
}

.rack-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.rack-name {
    font-size: 1.2em;
    font-weight: bold;
}

.rack-status {
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 0.9em;
}

.rack-metrics {
    display: flex;
    gap: 20px;
}

.metric {
    flex: 1;
}

.metric-label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9em;
    color: #888;
}

.progress {
    height: 8px;
    background: #333;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #2ecc71;
    transition: width 0.3s ease;
}

/* 机柜表格 */
.rack-elevation-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 1px;
    background: #262626;
}

.rack-elevation-table th,
.rack-elevation-table td {
    text-align: center;
    vertical-align: middle;
    padding: 4px;
    height: 28px;
    font-size: 12px;
    background: #1a1a1a;
}

/* U位编号 */
.u-number {
    background: #2c3e50 !important;
    color: #fff;
    font-weight: bold;
    width: 40px;
    text-align: center !important;
}

/* 设备单元格 */
.device-cell {
    background: #262626 !important;
    border: 1px solid #333;
    text-align: center !important;
}

.device-cell.empty {
    cursor: pointer;
    transition: background-color 0.2s;
}

.device-cell.empty:hover {
    background: #333 !important;
}

/* 设备信息 */
.device-info {
    padding: 8px;
    height: 100%;
    color: #fff;
    border-left: 3px solid transparent;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.device-info.status-success { border-color: #2ecc71; }
.device-info.status-warning { border-color: #f1c40f; }
.device-info.status-danger { border-color: #e74c3c; }
.device-info.status-secondary { border-color: #95a5a6; }

.device-name {
    font-weight: bold;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}

.device-model {
    font-size: 11px;
    color: #888;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}

.device-details {
    display: flex;
    justify-content: center;
    gap: 10px;
    font-size: 11px;
    color: #666;
    width: 100%;
}

.device-details span {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    border-radius: 3px;
}

/* PDU单元格 */
.pdu-cell {
    background: #262626 !important;
    color: #fff;
    text-align: center !important;
}

/* 高亮行 */
tr.highlighted td {
    background: #2c3e50 !important;
}

/* 底部行 */
.bottom-row td {
    background: #2c3e50 !important;
    color: #fff;
} 